#ifndef ACTIONS_H
#define ACTIONS_H

#include <QObject>

class QAction;

enum Tools_e{
	eSelectTool,
	eRectTool,
	eLineTool,
	eTextTool
};
class Actions : public QObject
{
	Q_OBJECT

public:
	Actions(QObject *parent = 0);
	~Actions();

	
	int initActions();

	QAction * mNew;


	QAction * mSelectTool;
	QAction * mRectTool;
	QAction * mDrawRectByMouse;
	QAction * mLineTool;
	QAction * mDrawLineByMouse;

	QAction * mHelp;

	Tools_e getCurrentTool() { return mCurrentTool; }
	void setCurrentTool(Tools_e t) { mCurrentTool = t; }

public slots:
	void selectToolEvent();
private:
	void createActions();
	Tools_e mCurrentTool;
	
};

extern Actions * gActions;

#endif // ACTIONS_H
